package cn.david.org.service;

import cn.david.basic.util.PageList;
import cn.david.org.domain.Department;
import cn.david.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    void add(Department department);
    void update(Department department);
    void delete(Long id);
    Department queryById(Long id);
    List<Department> queryAll();
    PageList<Department> queryPage(DepartmentQuery query);

    void deleteByIds(Long[] ids);

    List<Department> getDeptTree();
}
